# Copyright (C) 2018-2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

if(DEFINED IE_MAIN_SOURCE_DIR AND TARGET inference_engine)
    set(InferenceEngine_INCLUDE_DIRS ${IE_MAIN_SOURCE_DIR}/include)
    set(InferenceEngine_LIBRARIES inference_engine inference_engine_nn_builder)
else()
    include("${CMAKE_CURRENT_LIST_DIR}/targets.cmake")
    if(NOT WIN32)
        set_target_properties(IE::inference_engine PROPERTIES INTERFACE_COMPILE_OPTIONS "-Wno-error=deprecated-declarations")
    endif()
    get_target_property(InferenceEngine_INCLUDE_DIRS IE::inference_engine INTERFACE_INCLUDE_DIRECTORIES)
    set(InferenceEngine_LIBRARIES IE::inference_engine IE::inference_engine_nn_builder)
endif()
